package com.b3434.Bean;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * Created by Lee on 2017/3/24 0024.
 */
public class Schema {

    @JSONField(ordinal = 1)
    private String namespace;
    @JSONField(ordinal = 2)
    private String type;
    @JSONField(ordinal = 3)
    private String name;
    @JSONField(ordinal = 4)
    private List<JSONObject> fields;
    @Override
    public String toString() {
        return "Schema{" +
                "namespace='" + namespace + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", fields=" + fields.toString() +
                '}';
    }

    public String getType() {
        return type;
    }

    public Schema setType(String type) {
        this.type = type;
        return this;
    }



    public String getNamespace() {
        return namespace;
    }

    public Schema setNamespace(String namespace) {
        this.namespace = namespace;
        return this;
    }

    public String getName() {
        return name;
    }

    public Schema setName(String name) {
        this.name = name;
        return this;
    }

    public List<JSONObject> getFields() {
        return fields;
    }

    public Schema setFields(List<JSONObject> fields) {
        this.fields = fields;
        return this;
    }
}
